#include<iostream>
#include"ThreadPool.hpp"
#include"Task.hpp"
using namespace ThreadPoolModule;
int main()
{
    ENABLE_CONSOLE_LOG_STRATERY;
    ThreadPool<Task_t> threadpool;
    threadpool.Start();

    for(int i=0;i<20;i++)
    {
        Task_t task(i,i*2);
        threadpool.Enqueue(task);
    }
    sleep(5);
    

    threadpool.Stop();
    sleep(5);
    threadpool.Wait();
    return 0;
}